package com.cti.ftpservice.job;

import javax.annotation.Resource;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Component;

import com.cti.ftpservice.service.OnixDataService;

@Component("localOnixXmlFileParsingJob")
public class LocalOnixXmlFileParsingJob {

	private static Log log = LogFactory.getLog(LocalOnixXmlFileParsingJob.class);
	
	@Resource
	private OnixDataService onixDataService;
	
	public void doWork(){
		log.info("开始本地解析Onix文件");
		onixDataService.readBookInfoFromLocalOnixXmlFileToDataBase();
	}
}
